﻿Imports DotNetNuke.Entities.Users
Imports DotNetNuke.Services.Localization



Partial Class DesktopModules_Spiffy_PasswordReset_PasswordReset
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase

    Protected Sub DesktopModules_Spiffy_PasswordReset_PasswordReset_Init(sender As Object, e As System.EventArgs) Handles Me.Init
        If Not Page.IsPostBack Then
            DotNetNuke.UI.Utilities.ClientAPI.RegisterClientScriptBlock(Me.Page, "Spiffy_PasswordReset", "<script src=""" & ControlPath & "module.js""></script>")
        End If
    End Sub



    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
      
    End Sub


    Public Overloads ReadOnly Property UserId As Integer
        Get
            If Request.QueryString("UserId") = "" Then
                Return UserInfo.UserID
            Else
                Return Request.QueryString("UserId")
            End If
        End Get
    End Property

    Public ReadOnly Property MinPasswordLength As Integer
        Get
            Return DotNetNuke.Security.Membership.MembershipProviderConfig.MinPasswordLength
        End Get
    End Property



End Class
